jQuery.fn.pjq = function(url, options) {
  var elements = new Array();

  function process(data) {
    var cmds = data.length;
    for(i = 0; i < cmds; i++) {
      if(data[i].m == 'Script') {
        eval(data[i].a.toString());
      }
      var elems = elements.length;
      var args = '';
      if(data[i].a) {
        args = data[i].a;
      }
      var arg1 = null;
      var arg2 = null;
      var arg3 = null;
      if(typeof(args[0]) != 'object') {
        arg1 = args.toString();
      } else {
        arg1 = args[0];
        if(args[1]) {
          if(typeof(args[1]) != 'object') {
            arg2 = args[1].toString();
          } else {
            arg2 = args[1];
          }
        }
        if(args[2]) {
          if(typeof(args[2]) != 'object') {
            arg3 = args[2].toString();
          } else {
            arg3 = args[2];
          }
        }
      }
      for(x = 0; x < elems; x++) {
        $(elements[x])[data[i].m.toString()](arg1, arg2, arg3);
      }
    }
  }
  var i = 0;
  this.each(function() {
    elements[i] = this;
    i++; 
  });
  $.getJSON(url, options, function(data) {
    process(data);
  })
};